package ventanas.prueba;

import java.awt.Dimension;
import java.io.InputStream;
import java.sql.SQLException;

import javax.swing.JFrame;
import javax.swing.JPanel;

import logic.characters.Player;

import database.gestor.GestorBD;

public class VentanaJuego extends JFrame {

	private JPanel panel;
	private Player player;

	
	public VentanaJuego(){
		
		this.setVisible(true);
		setSize(800,600);
		this.setPreferredSize(new Dimension (800,600));
		setResizable(false);	
		this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
		this.setLocationRelativeTo(null);
		pack();
		
	}
	
	public JPanel getPanel(){
		return panel;
	}
	
	public void setPanel(JPanel p){
		panel.setVisible(false);
		p.setVisible(true);
		panel = p;
	}
	
	public void setPlayer(Player p){
		player = p;
	}
	}
}
